package com.zrong.gamesdk.test.integration.app;

import com.zrong.gamesdk.test.integration.thread.CommonCommentThread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class CommonCommentApp {
    public static void main(String args[]) {
        try {

            ExecutorService pool = Executors.newFixedThreadPool(4);
            Runnable runnable1 = new CommonCommentThread("评论1", "700012217000", String.valueOf(OriginsType.GAME_HALL.getValue()), 1000, 150);
            Runnable runnable2 = new CommonCommentThread("评论2", "700010587000", String.valueOf(OriginsType.WAP.getValue()), 1002, 500);
            Runnable runnable3 = new CommonCommentThread("评论3", "700010795000", String.valueOf(OriginsType.WWW.getValue()), 1003, 500);
            Runnable runnable4 = new CommonCommentThread("评论4", "700010783000", String.valueOf(OriginsType.GAME_HALL.getValue()), 1004, 400);
            new Thread(runnable1).start();
            new Thread(runnable2).start();
            new Thread(runnable3).start();
            new Thread(runnable4).start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
